package com.ruoyi.vpn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 vpn_order
 * 
 * @author Edwin
 * @date 2024-04-24
 */
public class VpnOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单表主键 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 套餐id */
    @Excel(name = "套餐id")
    private Long planId;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Long status;
    @Excel(name = "用户")
    private VpnUser vpnUser;
    @Excel(name = "套餐")
    private VpnPlan  vpnPlan;

    public VpnUser getVpnUser() {
        return vpnUser;
    }

    public void setVpnUser(VpnUser vpnUser) {
        this.vpnUser = vpnUser;
    }

    public VpnPlan getVpnPlan() {
        return vpnPlan;
    }

    public void setVpnPlan(VpnPlan vpnPlan) {
        this.vpnPlan = vpnPlan;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("planId", getPlanId())
            .append("status", getStatus())
            .toString();
    }




}
